Skip to content

bpo-24416: [DO NOT MERGE] Return a namedtuple from date.isocalendar() with structseq version#17651

Closed
corona10 wants to merge 1 commit into
python:masterfrom
corona10:bpo-24416-structseq
Closed

bpo-24416: [DO NOT MERGE] Return a namedtuple from date.isocalendar() with structseq version#17651
corona10 wants to merge 1 commit into
python:masterfrom
corona10:bpo-24416-structseq

Conversation

@corona10

@corona10 corona10 commented Dec 18, 2019

Copy link
Copy Markdown
Member

This is PoC PR from https://github.com/python/cpython/pull/15633/files#r358645767

Past trial 752aad8 which overriding __reduce__ was not proper since it affect to all structsequnce type.

So this is another trial that overriding reduce when initializing StructIsoCalendarDateType.
I checked that this change does not change any behavior of other StructSequence types.

https://bugs.python.org/issue24416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants